package com.edu.buservice.dal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.buservice.dal.model.SysTenant;
import com.edu.buservice.util.model.PageQuery;
import com.edu.buservice.util.model.PageResult;

import java.util.List;

/**
* @author 86177
* @description 针对表【sys_tenant(租户信息表)】的数据库操作Service
* @createDate 2025-02-05 23:34:09
*/
public interface SysTenantService extends IService<SysTenant> {

	SysTenant getTenantInfoByTenantId(String tenantId);

	List<SysTenant> batchQueryTenantInfo(List<String> tenantIds);


	//新增租户
	Boolean createTenant(String tenantId,String tenantName);

	PageResult<SysTenant> queryTenant(PageQuery<SysTenant> pageQuery);

	//更新租户信息
	Boolean updateTenant(SysTenant sysTenant);

	//更新租户消耗token数量
	Boolean updateTenantToken(String tenantId,Long token);

}
